package yuhuibear.poat.object.bean;

import yuhuibear.poat.annotations.action.AutoGenerateValue;

/**
 * 
 * @author yuhuibear
 */
public class AutoValue {

	private Class<?> type;

	private String sql;

	private boolean skipOnNull;

	public AutoValue(AutoGenerateValue agv, Class<?> type) {
		sql = agv.sqlToGet();
		this.skipOnNull = agv.skipOnNull();
		this.type = type;
	}

	public boolean isSkipOnNull() {
		return skipOnNull;
	}

	public void setSkipOnNull(boolean skipOnNull) {
		this.skipOnNull = skipOnNull;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public Class<?> getType() {
		return type;
	}

	public void setType(Class<?> type) {
		this.type = type;
	}
}
